package com.ruoyi.project.channel.vwPlatformUserStat.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.vwPlatformUserStat.mapper.VwPlatformUserStatMapper;
import com.ruoyi.project.channel.vwPlatformUserStat.domain.VwPlatformUserStat;
import com.ruoyi.project.channel.vwPlatformUserStat.service.IVwPlatformUserStatService;
import com.ruoyi.common.utils.text.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author CAIN
 * @date 2021-05-20
 */
@Service
public class VwPlatformUserStatServiceImpl implements IVwPlatformUserStatService 
{
	@Autowired
	private VwPlatformUserStatMapper vwPlatformUserStatMapper;

	/**
     * 查询VIEW信息
     * 
     * @param userSum VIEWID
     * @return VIEW信息
     */
    @Override
	public VwPlatformUserStat selectVwPlatformUserStatById(Long userSum)
	{
	    return vwPlatformUserStatMapper.selectVwPlatformUserStatById(userSum);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param vwPlatformUserStat VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<VwPlatformUserStat> selectVwPlatformUserStatList(VwPlatformUserStat vwPlatformUserStat)
	{
	    return vwPlatformUserStatMapper.selectVwPlatformUserStatList(vwPlatformUserStat);
	}
	
    /**
     * 新增VIEW
     * 
     * @param vwPlatformUserStat VIEW信息
     * @return 结果
     */
	@Override
	public int insertVwPlatformUserStat(VwPlatformUserStat vwPlatformUserStat)
	{
	    return vwPlatformUserStatMapper.insertVwPlatformUserStat(vwPlatformUserStat);
	}
	
	/**
     * 修改VIEW
     * 
     * @param vwPlatformUserStat VIEW信息
     * @return 结果
     */
	@Override
	public int updateVwPlatformUserStat(VwPlatformUserStat vwPlatformUserStat)
	{
	    return vwPlatformUserStatMapper.updateVwPlatformUserStat(vwPlatformUserStat);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteVwPlatformUserStatByIds(String ids)
	{
		return vwPlatformUserStatMapper.deleteVwPlatformUserStatByIds(Convert.toStrArray(ids));
	}
	
}
